-- GENERATED SPELL FOR [Varo'then's Ghost] --


function spell0_6118(pUnit, Event) --@Curse of Weakness,Self--
pUnit:FullCastSpellOnTarget(21007,pUnit)
pUnit:RegisterEvent('Sorts_6118', 550, 1)
end

function Sorts_6118(pUnit, Event)
local choix_sorts_6118 = math.random(0, 0)
if choix_sorts_6118 == 0 then
pUnit:RegisterEvent('spell0_6118', 1, 1)
end
end

function mob6118_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6118', math.random(1500, 3000), 1)
end

function mob6118_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6118_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6118_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6118, 1, 'mob6118_Action')
RegisterUnitEvent(6118, 2, 'mob6118_Leave')
RegisterUnitEvent(6118, 3, 'mob6118_Kill')
RegisterUnitEvent(6118, 4, 'mob6118_Die')
